package com.bnyy.medicalHousekeeper.bean;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * Author : 关炳鹏
 * Description :
 * Date : 2023/2/9
 **/
public class CustomerDetail implements Serializable {

    @SerializedName("role_id")
    private int roleId;
    private String sex;
    private int age;
    private int member_level;
    private String member_level_desc;
    @SerializedName("test_date")
    private String testDate;
    @SerializedName("orders_date")
    private String purchaseTime;
    @SerializedName("health_data")
    private ArrayList<HealthData> healthData;
    @SerializedName("orders_data")
    private ArrayList<Goods> purchaseRecord;
    @SerializedName("health_abnormal")
    private ArrayList<OtherInfo> otherInfo;

    private int user_id;
    private String user_name;
    private String user_image;
    private int id;
    private String phone;

    public int getRoleId() {
        return roleId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getUser_image() {
        return user_image;
    }

    public void setUser_image(String user_image) {
        this.user_image = user_image;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getMember_level() {
        return member_level;
    }

    public void setMember_level(int member_level) {
        this.member_level = member_level;
    }

    public String getMember_level_desc() {
        return member_level_desc;
    }

    public void setMember_level_desc(String member_level_desc) {
        this.member_level_desc = member_level_desc;
    }

    public String getTestDate() {
        return testDate;
    }

    public void setTestDate(String testDate) {
        this.testDate = testDate;
    }

    public String getPurchaseTime() {
        return purchaseTime;
    }

    public void setPurchaseTime(String purchaseTime) {
        this.purchaseTime = purchaseTime;
    }

    public ArrayList<HealthData> getHealthData() {
        return healthData;
    }

    public void setHealthData(ArrayList<HealthData> healthData) {
        this.healthData = healthData;
    }

    public ArrayList<Goods> getPurchaseRecord() {
        return purchaseRecord;
    }

    public void setPurchaseRecord(ArrayList<Goods> purchaseRecord) {
        this.purchaseRecord = purchaseRecord;
    }

    public ArrayList<OtherInfo> getOtherInfo() {
        return otherInfo;
    }

    public void setOtherInfo(ArrayList<OtherInfo> otherInfo) {
        this.otherInfo = otherInfo;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public static class HealthData implements Serializable {

        private int type; // 0:心率 3:血压 4:血氧
        private String type_desc;
        private Detail value;
        private int wear_id;

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getType_desc() {
            return type_desc;
        }

        public void setType_desc(String type_desc) {
            this.type_desc = type_desc;
        }

        public Detail getValue() {
            return value;
        }

        public void setValue(Detail value) {
            this.value = value;
        }

        public int getWear_id() {
            return wear_id;
        }

        public void setWear_id(int wear_id) {
            this.wear_id = wear_id;
        }

        public static class Detail implements Serializable {
            private String value;
            private String value_color;
            private String background_color;
            private String font_color;
            private String content;

            public String getValue() {
                return value;
            }

            public void setValue(String value) {
                this.value = value;
            }

            public String getValue_color() {
                return value_color;
            }

            public void setValue_color(String value_color) {
                this.value_color = value_color;
            }

            public String getBackground_color() {
                return background_color;
            }

            public void setBackground_color(String background_color) {
                this.background_color = background_color;
            }

            public String getFont_color() {
                return font_color;
            }

            public void setFont_color(String font_color) {
                this.font_color = font_color;
            }

            public String getContent() {
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }
        }
    }

    public static class OtherInfo implements Serializable {
        private int type;
        private String type_desc;
        private String date;

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getType_desc() {
            return type_desc;
        }

        public void setType_desc(String type_desc) {
            this.type_desc = type_desc;
        }

        public String getDate() {
            return date;
        }

        public void setDate(String date) {
            this.date = date;
        }
    }
}
